#include<iostream>
using namespace std;

int main()
{
	int A;
	int B;
	int C;
	cout <<"请输入小猪A的体重："<<endl;
	cin >> A;

	cout <<"请输入小猪B的体重："<<endl;
	cin >> B;
 
	cout <<"请输入小猪C的体重："<<endl;
	cin >> C;

	cout <<"小猪A重"<< A <<endl;
	cout <<"小猪B重"<< B <<endl;
	cout <<"小猪C重"<< C <<endl;
	
	/*if(A>B)
	{
		if(A>C)
		{
			cout <<"小猪A是最重的"<<endl;
		}
		else
		{
			cout <<"小猪C是最重的"<<endl;
		}
	}
	else
	{	
		if(B>C)
		{
			cout <<"小猪B是最重的"<<endl;
		}
		else
		{
			cout <<"小猪C是最重的"<<endl;
		}
	}*/
	char X;
	X = A > B ?(A > C ? 'A' : 'C') :(B > C ? 'B' : 'C');
	cout << "最重的小猪是"<< X <<endl;
	return 0;


}
